package com.zhiyou100.mapper;

import com.zhiyou100.entity.Attendance;
import com.zhiyou100.entity.StudentParent;
import com.zhiyou100.mappers.MyMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface StudentParentMapper extends MyMapper<StudentParent> {
//    private Integer spid;
//
//    private Integer pid;
//
//    private Integer sid;
//
//    private String relation;
    @Select("select * from student_parent where sid=#{sid}")
    public List<StudentParent> getAllBySid(Integer sid);
}